stack: Remove some code duplication
authorTimm Bäder <mail@baedert.org>
Fri, 26 Feb 2016 20:58:22 +0000 (21:58 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 12 May 2016 18:40:00 +0000 (20:40 +0200)
gtk/gtkstack.c

index 1136deb73f54852545ce5c0f77d26a80271bad6f..fe1d16af1f0e9116d0be267594fce311e693f59d 100644 (file)
@@ -2268,13 +2268,9 @@ gtk_stack_allocate (GtkCssGadget        *gadget,
           else if (valign == GTK_ALIGN_CENTER &&
                    child_allocation.height > allocation->height)
             child_allocation.y -= (nat - allocation->height) / 2;
-
-          gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation);
-        }
-      else
-        {
-          gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation);
         }
+
+      gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation);
     }
 
    if (gtk_widget_get_realized (widget))